<?php
class Test_Controller extends Base_Controller
{
	public function login()
	{
		$user_info = user::get_user_info($_POST['email']);
		if($user_info)
		{
			if(md5($_POST['password']) == $user_info['password'])
			{
				$user_info['status'] = 'ok';
				echo json_encode($user_info);
				exit;
			}
		}
		echo json_encode(array('status'=>'error'));
		exit;
	}
}
